#!/bin/bash
set -e

cpath=`pwd`

# 填充bloom数据
php ./fill_data.php

# 启动接口服务
ps -ef | grep localhost:8703 | grep -v grep | awk '{print $2}' | xargs kill -9
php -S localhost:8703 >> "${cpath}"/run.log 2>&1 &

bash -c "tail -f ${cpath}/*.log"